<?php
#+------------------------------------------------------------------
#| 普通的。
#+------------------------------------------------------------------
#| Author:Janmas Cromwell <janmas-cromwell@outlook.com>
#+------------------------------------------------------------------
namespace form\element\traits;

trait Css
{
    protected $css = '';

    protected $loadCss = [];

    public function css(string $css)
    {
        $this->css = $css;
        return $this;
    }

    public function loadCss($link)
    {
        $this->loadCss = is_array($link) ? $link : [$link];
        return $this;
    }

    public function getCss(): string
    {
        return $this->css;
    }

    /**
     * @return array
     */
    public function getLoadCss(): array
    {
        return $this->loadCss;
    }
}